<?php
declare(strict_types=1);

use think\facade\Route;
use SixShop\WechatPay\Controller\TransferBillController;
use SixShop\System\Middleware\MacroPageMiddleware;

// API路由
// 路由前缀: /admin/wechatpay
//
// 如果需要登录请添加认证中间件auth
// ->middleware(['auth'])

Route::resource('transfer_bill', TransferBillController::class, function (){
    Route::get('refresh', [TransferBillController::class, 'refresh']);
    Route::post('approve', [TransferBillController::class, 'approve']);
    Route::post('reject', [TransferBillController::class, 'reject']);
})
    ->only(['index'])
    ->middleware(['auth', MacroPageMiddleware::class]);
